The screenshots are from the sample code that I have also posted. The code is just to demonstrate the different behavior, which is unexpected.
The first screenshot shows the menu when I add menu items via delegate -> NOK
The second screenshot shows the menu when I add the items on toolbar item creation -> OK
When I do the adjustments that you suggested, the problem would happen for both toolbar items, because then both menus would be updated in the menuNeedsUpdate method.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: